define(function(require){
	function initRememberBox(){
		remember = $.trim($("#remember").val());
		console.log(remember)
        if(remember=="1"){
        	$("#rememberBox").attr("checked",true)
        }
	}
    $(function(){
        $('.forget').click(function(){
            require.async('dialog',function($dialog){
                $dialog({
                    title: '找回密码',
                    content: '请联系管理员找回密码：trp@semidata.com'
                }).showModal();
            });
        });

        $("#rememberBox").change(function(){
        	$("#remember").val(this.checked ? "1":"0")
        });

        initRememberBox();
    });
});